package com.github.m6d21.sso.service.login;

import com.github.m6d21.sso.core.annotation.Crypt;
import com.github.m6d21.sso.core.annotation.Encrypt;
import com.github.m6d21.sso.core.annotation.Login;
import com.github.m6d21.sso.model.user.entity.User;

/**
 *<p>
 *登录接口
 *</p>
 *
 * @author liuyang
 * @date 2018/12/8 Sat 22:49:00
 * @since 1.0.0
 */
public interface ILoginService {

    @Login
    @Crypt
    User login(String username, @Encrypt String password);

    void logout();

    @Crypt
    Boolean register(@Encrypt User user);
}
